<template>
	<view class="u-padding-20">
		<view class="u-font-16 font_weight">【公告】{{detail.title}}</view>
		<view style="color:#666;" class="u-font-12 u-padding-20">物业中心：{{detail.update_time}}</view>
		<view class="u-padding-left-20 u-padding-right-20">
			<view class="u-margin-top-20 u-margin-bottom-20">全体员工：</view>
			<view class="notice_con">
				<rich-text :nodes="detail.content"></rich-text>

			</view>
			<!-- <image class="u-margin-top-20" src="http://www.gsxcxh.com/static/upload/image/20220412/1649752924285862.jpg" mode=""></image> -->
		</view>
	</view>
</template>

<script>
	import {
		getNoticeDetail
	} from "@/service/indexService.js";
	export default {
		data () {
			return {
				id:0,
				detail:{}
			}
		},
		onLoad(options) {
			this.id=options.id;
			getNoticeDetail({
				id:options.id
			}).then(this.getdetail);
		},
		methods:{
			getdetail:function(e){
				if(e.code==200){
					this.detail=e.result
				}
			}
		}
	}
</script>

<style lang="scss">
	.notice_con{
		// text-indent:2em;
		line-height: 50rpx;
	}
</style>
